﻿/*
 * Created by SharpDevelop.
 * User: Intel
 * Date: 03.02.2014
 * Time: 12:08
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;
using System.IO;

namespace Region.Test
{
  /// <summary>
  /// Description of TestRegionFile.
  /// </summary>
  public class TestRegionFile
  {
    static public Boolean Test(Engine engine)
    {
      var f = new RegionFile(engine,"615902b2-8c6f-11e3-8dbd-89bc1534c338");
      using(var file = new FileStream(@"D:\Region.zip",FileMode.Open))
      {
        f.write(file);
      }
      using(var file = new FileStream(@"F:\Region.zip",FileMode.Create))
      {
        f.read(file);
      }      
      return true;
    }
  }
}
